package com.fastwire.alarm.admin.model.bussinessobject;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the al_tb_group_access database table.
 * 
 */
@Entity
@Table(name="al_tb_group_access")
public class AlTbGroupAccess implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private AlTbGroupAccessPK id;

    @Temporal( TemporalType.DATE)
	@Column(name="d_created")
	private Date dCreated;

	@Column(name="v_access_type", nullable=false, length=10)
	private String vAccessType;

	@Column(name="v_creator", length=30)
	private String vCreator;

	//bi-directional many-to-one association to AlMsGroupUser
    @ManyToOne
	@JoinColumn(name="n_group_user_id", nullable=false, insertable=false, updatable=false)
	private AlMsGroupUser alMsGroupUser;

	//bi-directional many-to-one association to AlMsMenu
    @ManyToOne
	@JoinColumn(name="n_menu_id", nullable=false, insertable=false, updatable=false)
	private AlMsMenu alMsMenu;

    public AlTbGroupAccess() {
    }

	public AlTbGroupAccessPK getId() {
		return this.id;
	}

	public void setId(AlTbGroupAccessPK id) {
		this.id = id;
	}
	
	public Date getDCreated() {
		return this.dCreated;
	}

	public void setDCreated(Date dCreated) {
		this.dCreated = dCreated;
	}

	public String getVAccessType() {
		return this.vAccessType;
	}

	public void setVAccessType(String vAccessType) {
		this.vAccessType = vAccessType;
	}

	public String getVCreator() {
		return this.vCreator;
	}

	public void setVCreator(String vCreator) {
		this.vCreator = vCreator;
	}

	public AlMsGroupUser getAlMsGroupUser() {
		return this.alMsGroupUser;
	}

	public void setAlMsGroupUser(AlMsGroupUser alMsGroupUser) {
		this.alMsGroupUser = alMsGroupUser;
	}
	
	public AlMsMenu getAlMsMenu() {
		return this.alMsMenu;
	}

	public void setAlMsMenu(AlMsMenu alMsMenu) {
		this.alMsMenu = alMsMenu;
	}
	
}